package com.king01.service;

import com.king01.entity.Branch;
import com.king01.entity.Staff;
import com.king01.vo.BranchVo;
import com.king01.vo.PageBean;
import com.king01.vo.Result;
import com.king01.vo.Staff02vo;

import java.util.List;

public interface BranchService {

    //查询店铺表
    public Result allBranch();
    //查询店铺表
    public Result allBranch2();

    public Result selectAll();

    public Result selectAllBranchAndStaff();

    //查询所有店铺信息
    public PageBean<Branch> selectAllBranchAndStaff(Integer currentPage, Integer pageSize, BranchVo branchVo);
//模糊查询店铺信息
    Result queryBranchInfoBybranchname(Branch branchname);
//添加新的店铺
    Integer insertNewBranch(Branch branch);
    //修改
    public Integer UpdateBranch(Branch branch);

    public Result adjustBranch(Branch branch);


//    调离
    public  Integer upStaff(Staff02vo staff02vo);
    public Integer upBranch(Staff02vo staff02vo);

    //获取所有可能的店长
    List<Staff> selectAll2();

    Integer updateDate(Staff staff);
    // 修改staff表
    Integer updateStaff(Staff staff);

//    根据店长id查找部门名
    public Result selectDeptName(Integer branchid);
}
